//
//  GQHRouteModel.h
//  Xanthium
//
//  Created by GuanQinghao on 09/04/2018.
//  Copyright © 2018 GuanQinghao. All rights reserved.
//

#import "GQHBaseModel.h"

@interface GQHRouteModel : GQHBaseModel

/// 路线ID
@property (nonatomic, copy) NSString *qh_routeID;
/// 用户ID
@property (nonatomic, copy) NSString *qh_userID;
/// 起始地行政编码
@property (nonatomic, copy) NSString *qh_departureID;
/// 起始地
@property (nonatomic, copy) NSString *qh_departure;
/// 目的地行政编码
@property (nonatomic, copy) NSString *qh_destinationID;
/// 目的地
@property (nonatomic, copy) NSString *qh_destination;
/// 路线空车数或货源数
@property (nonatomic, assign) NSInteger qh_number;

/**
 
 "id": "4028b881627b535d01627b8d0cb70025",
 "focusUser": "4028b881627b535d01627b62b96b000a",
 "originId": "110111",
 "destinationId": "130104",
 "destination": "石家庄市 桥西区",
 "origin": "北京市 房山区",
 "num": 0
 */

/// 获取路线空车
+ (void)qh_fetchRoutesTrucksWithParameters:(NSDictionary *)parameters success:(void(^)(BOOL status, NSNumber *code, NSString *message, NSArray<GQHRouteModel *> *routes))success failure:(void(^)(NSError *error))failure;

/// 获取路线货源
+ (void)qh_fetchRoutesFreightsWithParameters:(NSDictionary *)parameters success:(void(^)(BOOL status, NSNumber *code, NSString *message, NSArray<GQHRouteModel *> *routes))success failure:(void(^)(NSError *error))failure;

@end
